/*
 * @Author: Await
 * @Date: 2025-02-23 13:21:39
 * @LastEditors: Await
 * @LastEditTime: 2025-02-23 13:21:44
 * @Description: 请填写简介
 */
module.exports = {
    preset: 'ts-jest',
    testEnvironment: 'node',
    roots: ['<rootDir>/src'],
    testMatch: ['**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts'],
    transform: {
        '^.+\\.ts$': 'ts-jest',
    },
    moduleFileExtensions: ['ts', 'js', 'json', 'node'],
    collectCoverage: true,
    coverageDirectory: 'coverage',
    coverageReporters: ['text', 'lcov'],
    coveragePathIgnorePatterns: ['/node_modules/', '/__tests__/'],
    globals: {
        'ts-jest': {
            tsconfig: 'tsconfig.json'
        }
    }
};